# include <iostream>

using namespace std;

int main ( )
{
    int i,a[10],b[10];

    for(i=0;i<10;i++)    a[i]=i+1;
    for(i=10-1;i>=0;i--) cout<<a[i]<<" ";
    for(i=0;i<10;i++)    b[i]=a[i]*2,cout<<b[i]<<" ";

    cin>>i;
    return 0;
}
